package org.darkforest.common.services;

import org.darkforest.model.StoreGrade;

import java.util.List;

/**
 * Created by Administrator on 2015/12/16.
 */
public interface StoreGradeService {

    int deleteByPrimaryKey(Integer sgId);

    int insert(StoreGrade record);

    int insertSelective(StoreGrade record);

    StoreGrade selectByPrimaryKey(Integer sgId);

    int updateByPrimaryKeySelective(StoreGrade record);

    int updateByPrimaryKeyWithBLOBs(StoreGrade record);

    int updateByPrimaryKey(StoreGrade record);

    /**
     * 根据店铺条件查询店铺列表
     * @param storeGrade
     * @return
     */
    List<StoreGrade> selectStoreGradeByCondition(StoreGrade storeGrade);

    /**
     * 批量删除店铺等级
     * @param ids
     * @return
     */
    int delStoreGradeBatch(String[] ids);

    /**
     * 编辑店铺等级时校验数据
     * @param storeGrade
     * @return
     */
    List<StoreGrade> checkStoreGradeNameOrSortForModify(StoreGrade storeGrade);
}
